package org.gwtEss.table;

import java.util.ArrayList;
import java.util.List;


/*public class Cols<VO> extends ArrayList<AbstractColDefBase<VO, ?>>{
}
*/
public class Cols<VO> extends ArrayList<ColWidget>{
	@Override
	public boolean add(ColWidget o) {
		assert !( o instanceof UserManagedColWidget) || !(o instanceof SystemManagedColWidget) || !(o instanceof ReadOnlyTextColWidget): 
			"ColWidget should be instantiated from one of its derived forms: UserManagedColWidget, SystemManagedColWidget or ReadOnlyTextColWidget"; 
		return super.add(o);
	}
	public boolean add(UserManagedColWidget<VO, ?> o) {
		return super.add(o);
	}
	public boolean add(SystemManagedColWidget<VO, ?> o) {
		return super.add(o);
	}
	public boolean add(ReadOnlyTextColWidget<VO> o){
		return super.add(o);
	}
	public boolean add(SmartUserManagedColWidget<VO, ?> o){
		return super.add(o);
	}
}
